﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ClaimedTask.aspx.cs" Inherits="BasePages_ClaimedTask" %>

<%@ Register Assembly="YYWebControl" Namespace="YYWebControl.YYSimpleCalendar" TagPrefix="YYWebControl" %>

<%@ Register src="../BaseUserControls/PageBarTwo.ascx" tagname="PageBarTwo" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <LINK href="../CSS/hfmanger.css" type="text/css" rel="stylesheet">
    <link href="../Css/PageBar.css" rel="stylesheet" type="text/css" />
</head>
<body >
    <form id="form1" runat="server">
            <table  width="100%">
                <tr>
                    <td align="left" style="height: 23px" valign="middle" class="toolbar">
            <asp:Image ID="Image1" runat="server" ImageUrl="../Images/rss_2.gif" /><strong>已认领任务</strong></td>
                </tr>
                <tr>
                    <td align="left" class="blackbar" >
                    </td>
                </tr>
                <tr>
                    <td align="center" class="blackbar">
                    <table style="width: 98%">
                                <tr>
                                    <td   class="listContent">
                    <asp:CheckBox ID="cbxWorkflowCaption" runat="server" Text="业务名:" />
                                        <asp:TextBox ID="tbxFlowInsCaption" runat="server" Width="131px" />&nbsp;
                                        <asp:CheckBox ID="cbxDatetime" runat="server" Text="到达时间：从" />
                                        <YYWebControl:YYSimpleCalendar ID="YYSimpleCalendar1" runat="server" />
                                        到<YYWebControl:YYSimpleCalendar ID="YYSimpleCalendar2" runat="server" />
                            <asp:ImageButton ID="ImageButton1" runat="server" Height="20px" ImageUrl="../Images/查询.gif"
                                Width="39px" OnClick="ImageButton1_Click" /></td></tr></table>
                    </td>
                </tr>
                <tr>
                    <td align="left" class="blackbar" valign="middle">
                    &nbsp;
                    <asp:Image ID="Image2" runat="server" ImageUrl="~/images/0.ico" />
                    正常任务&nbsp;&nbsp;&nbsp;&nbsp; 
                    <asp:Image ID="Image3" runat="server" ImageUrl="~/images/5.ico" />
                        指派或退回的任务</td>
                </tr>
                <tr>
                    <td align=center>
                        <table width=98%>
                            <tr>
                                <td class="listContent">
                        <asp:GridView ID="gvClaimedTask" runat="server" AutoGenerateColumns="False" Width="100%" PageSize="20" CellPadding="4" ForeColor="#333333" GridLines="None" OnRowDataBound="gvClaimedTask_RowDataBound">
                            <Columns>
                             <asp:ImageField DataImageUrlField="status" DataImageUrlFormatString="../images/{0}.ico">
                            </asp:ImageField>
                                <asp:BoundField DataField="WorkFlowNo" HeaderText="流程编号">
                                    <ItemStyle Width="100px" />
                                </asp:BoundField>
                                 <asp:HyperLinkField DataNavigateUrlFields="WorkTaskInstanceId,OperatorInstanceId" DataTextField="FlowInstanceCaption"
                                HeaderText="业务名" DataNavigateUrlFormatString="WorkTaskCtrlPage.aspx?WorkTaskInstanceId={0}&amp;OperatorInstanceId={1}" Target="_blank" >
                                <ItemStyle Width="200px" />
                            </asp:HyperLinkField>
                                <asp:BoundField DataField="TaskCaption" HeaderText="任务名">
                                    <ItemStyle Width="300px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="pOperatedDes" HeaderText="提交人">
                                    <ItemStyle Width="150px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="taskStartTime" HeaderText="到达时间" >
                                    <ItemStyle Width="200px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Priority" HeaderText="优先级">
                                    <HeaderStyle Width="100px" />
                                    

                                </asp:BoundField>
                                <asp:TemplateField HeaderText="认领" ShowHeader="False">
                                    <ItemTemplate>
                                    
                                        <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="false" CommandName=""
                                            Text="放弃" CommandArgument='<%# Eval("WorkTaskInstanceId")+","+Eval("OperatorInstanceId") %>' OnClick="LinkButton2_Click"></asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle Width="60px" />
                                </asp:TemplateField>
                                <asp:HyperLinkField HeaderText="查看" Text="流程图" DataNavigateUrlFormatString="WorkflowMap.aspx?workflowId={0}&amp;workflowInstanceId={1}" DataNavigateUrlFields="workflowId,workflowInstanceId" Target="_blank">
                                    <ItemStyle Width="70px" />
                                </asp:HyperLinkField>
                                <asp:BoundField DataField="TaskInsDescription" HeaderText="备注">
                                    <ItemStyle Width="100px" />
                                </asp:BoundField>
                            </Columns>
                            <HeaderStyle HorizontalAlign="Left" CssClass="gridHead"  />
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <RowStyle BackColor="#EFF3FB" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <EditRowStyle BackColor="#2461BF" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>
                                </td>
                            </tr>
                            <tr>
                                <td >
                                    <uc1:PageBarTwo ID="PageBarTwo1" runat="server" Visible="False" />
                                </td>
                            </tr>
                        </table>
                        </td>
                </tr>
            </table>
 
    </form>
</body>
</html>
